﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SkinableFormsTest
{
    public partial class GirlieForm : SkinableFormsLib.LWSkinableForm
    {
        public GirlieForm()
        {
            InitializeComponent();
        }

        private void _timer1_Tick(object sender, EventArgs e)
        {
            lwLabel2.Text = DateTime.Now.ToLongTimeString();
        }

        private void GirlieForm_Load(object sender, EventArgs e)
        {

            for (int i = 1; i < 12; i++)
            {
                SkinableFormsLib.LWButton b = new SkinableFormsLib.LWButton();
                b.Size = romboidButton.Size;
                Point l = romboidButton.Location;
                l.X += 
                    ((int)(i/3))%2*b.Size.Width/2+
                    i%3 * b.Size.Width;
                l.Y += ((int)i/3) * b.Size.Height/2;
                b.Location = l;

                b.FlatAppearance.BorderSize = romboidButton.FlatAppearance.BorderSize;
                b.FlatStyle = romboidButton.FlatStyle;
                b.BackColor = romboidButton.BackColor;
                b.BackgroundImage = romboidButton.BackgroundImage;
                b.LWTransparent = true;
                Controls.Add(b);

            }
        }

		private void lwButton2_Click(object sender, EventArgs e)
		{
			Close();
		}
    }
}
